<?php
/* @var $this LogController */
/* @var $model Log */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'log-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'description'); ?>
		<?php echo $form->textField($model,'description',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'description'); ?>
	</div>

	<div class="row"

	<?php echo $form->labelEx($model,'date_time'); ?>
		<?php $this->widget('ext.timepicker1.timepicker',array(
              'name' => 'date_time',
              'model'=>$model,
             'language'=>'en',
                'options' =>array (
                   'timeFormat'=>'hh:mm:ss',
                 'showSecond'=>true,
                 'hourGrid'=>4,
               'minuteGrid'=>10,
			          'secondGrid'=>10,
			   
),
)); ?>
		<?php echo $form->error($model,'date_time'); ?>

	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'employee_id'); ?>
			<?php echo $form->dropDownList ($model, 'employee_id',
		CHtml::listData(Employee::model()->findAll(),'id','FullNameEmployee'),
		array('prompt' => 'Select Employee')
		); ?>
		<?php echo $form->error($model,'employee_id'); ?>
	</div>


	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->
